<?php

/**
 * Core class. Initialises the basic functions of the framework after the bootstrap procedure. Run Runner usually HTTPRunner.
 * @package Core
 * @category Core
 * @author bartu
 */
class Core
{
	/**
	 * Constructor. MUST run the pre_core plugins.
	 * @return void
	 */
	function __construct()
	{
		ob_start();
	}

	/**
	 * Destructor. MUST run the post_core plugins.
	 * @return void
	 */
	function __destruct()
	{
		ob_end_flush();
	}

	/**
	 * Runs the runner. Nothing to explain here.
	 * @param IRunner $r
	 * @return void
	 */
	function run(IRunner $r)
	{
		$r->run();
	}
}
?>